/**
 * 共用数据混入
 */
export default {
	data() {
		return {};
	},
	computed: {},
	methods: {
		toBack(){
			uni.navigateBack()
		},
		toNav(route) {
			uni.navigateTo({
				url: `/pages/${route}`,
				fail: () => {
					uni.navigateTo({
						url: `/pagesExtend/${route}`
					})
				}
			})
		},
		toTab(route) {
			uni.switchTab({
				url: `/pages/${route}`,
			})
		},
	}
};